<ion-view view-title="确认订单">
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"
                   pulling-text="下拉刷新..."
                   refreshing-text="拼命加载中..."
                   refreshing-icon="ion-loading-b">

    </ion-refresher>
    <ion-list>
      <a href="" ng-repeat="good in cartlist" style="width: 100%;height: auto" class="no-decoration-scor">
        <ion-item >
          <div class="row" style="width: 100%;height:auto">
            <div class="nico-trash">
              <button class="button button-icon icon ion-trash-a" style="color: #FF7F00;" ng-click="trashOne($index,good)"></button>
            </div>
            <!--<div class="col-25 ">-->
              <!--<a href="#" class="button button-icon icon ion-trash-a"></a>-->
              <!--<img ng-src="{{good.pictrue}}"  width="100%" height="100%" class="am-radius"/>-->
            <!--</div>-->
          <div class="col-25 row-bottom" >
            <div class=" row">
                <div class="col-50 ">
                  <div class=" row"  style="">
                    <div class="scor-color-gr-font font-weight-700 padding-0-scor">
                      {{good.name}}
                    </div>
                  </div>
                </div>
            </div>
            <div class=" row">
              <div class="col-75 ">
                <div class=" row"  style="">
                  <div class="col  padding-0-scor">
                    {{good.specName}}
                  </div>

                </div>
                <div class=" row"  style="">
                  <div class="col  padding-0-scor color-red-scor">
                    套餐价：￥{{good.price}}
                  </div>
                </div>
                <div class=" row"  style="">
                  <div class="col  padding-0-scor">
                    原价：￥{{good.grprice}}
                  </div>
                </div>
                <div class=" row"  style="">
                  <div class="col  padding-0-scor">
                    /余{{good.inventory}}份
                  </div>
                </div>
              </div>
            </div>
            <div style="width: 250px;margin-top: -50px;">
              <div class="float-right">
                <div class=" row">
                  <div class="display-inline-block float-right shop-cnt" style="position:relative;width: 127px;height: 42px;border-top-width: 3px;">
                      <span class="minus text-center font-size-36p white detail-minus" ng-click="minus($index,good)">-</span>
                    <!--<span class="minus text-center font-size-36p white detail-minus" >-</span>-->
                      <span class=" text-center  shop-num color-FF6F2E">
                        <span class="detail-datasize" ng-model="good.num" required
                              required
                              ng-required>{{good.num}}</span>
                      </span>
                      <span class="plus text-center font-size-36p white detail-plus" ng-click="plus($index,good)">+</span>
                    <!--<span class="plus text-center font-size-36p white detail-plus">+</span>-->
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </ion-item>
      </a>
    </ion-list>
    <div class="list card" >
      <div class="item">
        <span style="margin-top: 5px;">备注</span>
      </div>
      <div class="item item-body" >
        <textarea type="text" cols="50" rel="50"  class="display-inline-scor" style="resize: none;max-width:300px;max-height: 200px;height: 100px;" placeholder="请在此处填写备注信息" ng-model="product.remark" ></textarea>
      </div>
    </div>
    <div class="list card" >
      <div class="item">
        <div>
        <span style="margin-top: 5px;">收件地址</span>
        <span>
          <a class="button button-icon icon ion-camera float-right" style="color: #FF7F00;" ng-click="barscanReceive()"></a>
        </span>
        </div>
      </div>
      <div class="item item-body" >
        <label for="uname">收件人：
          <!--<button  ng-if="!modify.phone" id="phone" class="  button-clear" ng-click="modifyBefore('phone')" ng-bind="user.phone"></button>-->
          <input type="text"   id="uname" cols="50" rel="20"  class="display-inline-scor"  placeholder="收件人" ng-model="product.name"/>
        </label>
        <br>
        <label for="uphone">联系电话：
          <!--<button  ng-if="!modify.phone" id="phone" class="  button-clear" ng-click="modifyBefore('phone')" ng-bind="user.phone"></button>-->
          <input type="text"   id="uphone" cols="50" rel="20"  class="display-inline-scor" placeholder="联系电话" ng-model="product.phone" />
        </label>

        <br>
        <label>收件地址：
          <!--<button  ng-if="!modify.phone" id="phone" class="  button-clear" ng-click="modifyBefore('phone')" ng-bind="user.phone"></button>-->
          </label>
        <textarea type="text" cols="50" rel="50"  class="display-inline-scor" placeholder="请填写收货地址或者扫码获取" ng-model="product.orderAddress" ></textarea>

      </div>
    </div>

  </ion-content>
  <div class="bar bar-footer bar-stable">
    <button class="button button-icon icon ion-trash-a" style="color: #FF7F00;" ng-click="trashAll()"></button>

    <div class="title">
      <p><span class=" color-red-scor">原价:￥{{product.allAmount}}</span><span style="padding-left: 5px;color: green;"> 套餐价:￥{{product.packageprice}}</span></p>
    </div>
    <button class="button button-clear"  ng-disabled='!canAccount' ng-click="amountNow()">立即下单</button>
  </div>

</ion-view>
